<script setup lang="ts">
import ProConfigProvider from '@/components/basic/pro-config-provider/index.vue';
import { RouterView, useRouter } from 'vue-router';
import { useUserStore } from '@/store/modules/user';

const router = useRouter();
console.log(router.options);

const userStore = useUserStore();
if (!userStore.token) router.replace('/login');
</script>

<template>
  <ProConfigProvider>
    <router-view #="{ Component }">
      <component :is="Component" />
    </router-view>
  </ProConfigProvider>
</template>

<style scoped>
.logo {
  height: 6em;
  padding: 1.5em;
  will-change: filter;
  transition: filter 300ms;
}
.logo:hover {
  filter: drop-shadow(0 0 2em #646cffaa);
}
.logo.vue:hover {
  filter: drop-shadow(0 0 2em #42b883aa);
}
</style>
